import React from 'react'
import { useNavigate } from 'react-router-dom'
import { Button } from 'react-vant'

function Index() {
    let navget = useNavigate()
    return (
        <div>
            搜索页
            <Button onClick={() => navget('/map')}>附近</Button>
        </div>
    )
}

export default Index
